package com.example.demo.demos.web.service;

import com.example.demo.demos.web.domain.User;

import java.util.List;

public interface UserService {
    User selectById(Long id);
    List<User> selectByAge(Integer age);
    List<User> selectByName(String name);

    int insert(User user);

    int updateById(User user);

    int removeById(Long id);

    User getUserById(Long id);
}
